package com.tusuo.stds.ui.module;

import android.support.v4.app.Fragment;
import android.widget.ListView;

import com.tusuo.stds.R;

import org.androidannotations.annotations.AfterInject;
import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.ViewById;

/**
 * @author J.Huang
 * @version 1.0
 *
 */

@EFragment(R.layout.frag_main_level_list)
public class MainLevelListFragment extends Fragment {

    @ViewById(R.id.list_main_level)
    ListView listView;

    private LevelListAdapter mLevelListAdapter;

    @AfterViews
    void initData() {
        listView.setAdapter(mLevelListAdapter);
    }

    // Called before @AfterViews
    void init(LevelListAdapter levelListAdapter) {
        mLevelListAdapter = levelListAdapter;
    }
}
